package com.base.commonlib.bean;

import android.text.TextUtils;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by arvin on 2018/10/30.
 */

@Entity
public class Partner {

    /**
     * Id : c3d17999-e70b-4536-8d81-46cd8a1ce099
     * LoginName : test
     * UserName : 测试
     * Secretkey :
     * PassWord : 9c2J0pwBuUw=
     * CompanyId : null
     * CompanyName : null
     * DeptId : 200a9786-8d72-4d58-a8b3-8711f9217578
     * DeptName : null
     * Mobile : null
     * CertificateNo : null
     * ChangePasswordDate : 0001-01-01T00:00:00
     */

    @org.greenrobot.greendao.annotation.Id
    private Long _Id;
    private String Id;
    private String LoginName;
    private String UserName;//用户名
    private String Secretkey;
    private String PassWord;
    private String CompanyId;//
    private String CompanyName;//
    private String DeptId;//
    private String DeptName;//
    private String Mobile;//
    private String CertificateNo;//
    private String ChangePasswordDate;

    private String ParentId;


    @Generated(hash = 140193079)
    public Partner(Long _Id, String Id, String LoginName, String UserName,
            String Secretkey, String PassWord, String CompanyId, String CompanyName,
            String DeptId, String DeptName, String Mobile, String CertificateNo,
            String ChangePasswordDate, String ParentId) {
        this._Id = _Id;
        this.Id = Id;
        this.LoginName = LoginName;
        this.UserName = UserName;
        this.Secretkey = Secretkey;
        this.PassWord = PassWord;
        this.CompanyId = CompanyId;
        this.CompanyName = CompanyName;
        this.DeptId = DeptId;
        this.DeptName = DeptName;
        this.Mobile = Mobile;
        this.CertificateNo = CertificateNo;
        this.ChangePasswordDate = ChangePasswordDate;
        this.ParentId = ParentId;
    }

    @Generated(hash = 40105147)
    public Partner() {
    }
    

    public String getId() {
        return Id;
    }

    public void setId(String id) {
        Id = id;
    }

    public String getLoginName() {
        return LoginName;
    }

    public void setLoginName(String loginName) {
        LoginName = loginName;
    }

    public String getUserName() {
        return UserName;
    }

    public void setUserName(String userName) {
        UserName = userName;
    }

    public String getSecretkey() {
        return Secretkey;
    }

    public void setSecretkey(String secretkey) {
        Secretkey = secretkey;
    }

    public String getPassWord() {
        return PassWord;
    }

    public void setPassWord(String passWord) {
        PassWord = passWord;
    }

    public String getCompanyId() {
        return CompanyId;
    }

    public void setCompanyId(String companyId) {
        CompanyId = companyId;
    }

    public String getCompanyName() {
        return CompanyName;
    }

    public void setCompanyName(String companyName) {
        CompanyName = companyName;
    }

    public String getDeptId() {
        return DeptId;
    }

    public void setDeptId(String deptId) {
        DeptId = deptId;
    }

    public String getDeptName() {
        return DeptName;
    }

    public void setDeptName(String deptName) {
        DeptName = deptName;
    }

    public String getMobile() {
        return Mobile;
    }

    public void setMobile(String mobile) {
        Mobile = mobile;
    }

    public String getCertificateNo() {
        return CertificateNo;
    }

    public void setCertificateNo(String certificateNo) {
        CertificateNo = certificateNo;
    }

    public String getChangePasswordDate() {
        return ChangePasswordDate;
    }

    public void setChangePasswordDate(String changePasswordDate) {
        ChangePasswordDate = changePasswordDate;
    }

    public String getParentId() {
        return ParentId;
    }

    public void setParentId(String parentId) {
        ParentId = parentId;
    }

    public Long get_Id() {
        return this._Id;
    }

    public void set_Id(Long _Id) {
        this._Id = _Id;
    }

    @Override
    public boolean equals(Object obj) {
        return TextUtils.equals(Id,((Partner)obj).getId());
    }
}
